"""
Raw api
"""

import sys
import config

from redfishtoollib import main


def raw_request():
    # Enable JSON result printing
    config.PRINT_JSON_RESULT = True
    args = sys.argv[7:]
    cmd = ['redfishtool.py', '-r', sys.argv[2], '-u', sys.argv[4], '-p', sys.argv[6], *args]
    main(cmd)
